package com.hh.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author hanhui
 * @TableName blog
 */
@TableName(value = "blog")
@Data
public class Blog implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 封面图
     */
    @TableField(value = "coverUrl")
    private String coverUrl;

    /**
     * 文章标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 文章内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 发布者 ID（关联用户表）
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * JSON数组
     */
    @TableField(value = "tags")
    private String tags;

    /**
     *
     */
    @TableField(value = "category")
    private String category;

    /**
     * 观看量
     */
    @TableField(value = "viewCount")
    private Long viewCount;

    /**
     * 点赞量
     */
    @TableField(value = "likeCount")
    private Long likeCount;

    /**
     * 收藏量
     */
    @TableField(value = "collectCount")
    private Long collectCount;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 文章发布时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "isDelete")
    private Integer isDelete;

    /**
     * 审核状态：0-待审核; 1-通过; 2-拒绝
     */
    @TableField(value = "reviewStatus")
    private Integer reviewStatus;

    /**
     * 审核信息
     */
    @TableField(value = "reviewMessage")
    private String reviewMessage;

    /**
     * 审核人 ID
     */
    @TableField(value = "reviewerId")
    private Long reviewerId;

    /**
     * 审核时间
     */
    @TableField(value = "reviewTime")
    private Date reviewTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}